﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Public/Public.Master" AutoEventWireup="true" CodeBehind="Exchange.aspx.cs" Inherits="NhanAi.Public.Exchange" %>
<%@ Register Src="~/Public/PublicPagingBar.ascx" TagName="PagingBar" TagPrefix="uc" %>
<%@ Import Namespace="NhanAi.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <title>
        <asp:Literal ID="litCount" runat="server" Text="<%$Resources:HmLanguage,exchange %>"></asp:Literal></title>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <% string lang = CurrentLanguage; %>
     <h2 class="category-title"><asp:Literal runat="server" ID="litSubject" Text="<%$Resources: HmLanguage, exchange %>"></asp:Literal></h2>
    <%if (Posts!=null && Posts.Count > 0) foreach (Post p in Posts)
          { %>
    <div class="cate-post-item">       
        <h3 class="list-post-title"><a href="ExchangeDetails.aspx?id=<%=p.Id %>"> <%=p.Title +" - " +p.TitleEn%></a></h3>
        <p class="list-post-excerpt">
            <%= p.Content %>
            <a href="ExchangeDetails.aspx?id=<%=p.Id %>" class="more left"> <asp:Literal runat="server" ID="litItem" Text="<%$Resources:HmLanguage, view_more %>"></asp:Literal></a>
        </p>
    </div>
       <uc:PagingBar runat="server" ID="paging" />
    <% }
      else
      {%>
          
    <h3><asp:Literal runat="server" ID="litMessage" Text="<%$Resources:HmLanguage,no_post_of_subject %>"></asp:Literal></h3>
 
      <% }%>
    <hr class="clear" />
    <div style=" margin-top:20px; display:block; clear:both;"><a href="ExchangeAdd.aspx" style="font-weight:bold; color:red; font-size:16px;"><asp:Literal runat="server" ID="Literal1" Text="<%$Resources:HmLanguage,make_question %>"></asp:Literal></a></div>
</asp:Content>
